<template>
    <div flex-col gap-y-10 style="width: 60px">
        <div flex>
            <n-button type="primary" size="small" @click="onEdit">
                编辑
            </n-button>
            <n-button type="error" size="small" @click="onDelete" style="margin-left: 10px">
                删除
            </n-button>
        </div>
    </div>
</template>

<script setup>
const emit = defineEmits(['clickDelete','clickEdit'])
const onDelete = ()=>{
  emit('clickDelete')
}
const onEdit = ()=>{
  emit('clickEdit')
}
</script>
